fixing the viewer